package com.suqiu.qqrobot.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: suqiu
 * @desc:
 * @date: 2023/4/18
 */
@Data
@Component
@ConfigurationProperties(prefix = "openai")
public class OpenAiProperties {

    private List<String> accessKey;

    private ChatGpt chatGpt;

    @Data
    public static class ChatGpt {
        private Double temperature;
        private Integer maxContext;
        private Double topP;
        private Integer maxToken;
    }
}
